projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6604353
)
* tramp.texi (Frequently Asked Questions): New item for
author
Michael Albinus
<michael.albinus@gmx.de>
Thu, 3 Sep 2009 15:21:47 +0000
(15:21 +0000)
committer
Michael Albinus
<michael.albinus@gmx.de>
Thu, 3 Sep 2009 15:21:47 +0000
(15:21 +0000)
emacsclient (extended).
doc/misc/tramp.texi
patch
|
blob
|
history
diff --git
a/doc/misc/tramp.texi
b/doc/misc/tramp.texi
index 5ac95d9ea73b8f499f8f382a8ffbff65434333b1..2021a6ecd0dfe01a2c8e4a0f2f4a813bcf64ea88 100644
(file)
--- a/
doc/misc/tramp.texi
+++ b/
doc/misc/tramp.texi
@@
-3242,6
+3242,21
@@
emacsclient @trampfn{ssh, user, host, /file/to/edit}
@end example
@code{user} and @code{host} shall be related to your local host.
+
+If you want to use Emacs Client also as editor for other programs, you
+could write a script @file{emacsclient.sh}:
+
+@example
+#!/bin/sh
+emacsclient @trampfn{ssh, `whoami`, `hostname --fqdn`, $1}
+@end example
+
+Then you must set the environment variable @code{EDITOR} pointing to
+that script:
+
+@example
+export EDITOR=/path/to/emacsclient.sh
+@end example
@end ifset